public without sharing class InstrumentDeliveryApplicationHandler {
    

    public static void calcEquipmentNum(List<InstrumentDeliveryApplication__c> list_new,Boolean isDelete  ){
		System.debug('InstrumentDeliveryApplicationHandler==>'+list_new);
    	for (InstrumentDeliveryApplication__c ida : list_new ) {
            if(isDelete && ida.NC__c == true  ) {
                ida.addError('已同步NC不能删除!');
                return;
            }


    		System.debug('InstrumentDeliveryApplicationHandler==>'+ida);
    		if(ida != null &&  ida.Opportunity__c  != null  )ContractCalcEquipmentUtil.sendBackToContract(ida.Opportunity__c);
    		//InstrumentDeliveryApplication__c old = oldMap == null ? null :  oldMap.get(ida.Id);

   			// System.debug('InstrumentDeliveryApplicationHandler==>'+ida.NC__c );
   			// System.debug('InstrumentDeliveryApplicationHandler==>'+old.NC__c );

    		// System.debug('InstrumentDeliveryApplicationHandler==>'+(ida.NC__c == true && old != null && old.NC__c != ida.NC__c));
    		// if(ida.NC__c == true && old != null && old.NC__c != ida.NC__c)genInstallApply(ida);

    		
    	}
    } 



    




}